无法加载动态库‘libcublasLt.so.11.so.11’;dlerror: libcublasLt.so.11.so.11:无法打开共享对象文件:没有这样的文件或目录

您所在的位置:网站首页 如何安装tensorflow cpu 无法加载动态库‘libcublasLt.so.11.so.11’;dlerror: libcublasLt.so.11.so.11:无法打开共享对象文件:没有这样的文件或目录

无法加载动态库‘libcublasLt.so.11.so.11’;dlerror: libcublasLt.so.11.so.11:无法打开共享对象文件:没有这样的文件或目录

#无法加载动态库‘libcublasLt.so.11.so.11’;dlerror: libcublasLt.so.11.so.11:无法打开共享对象文件:没有这样的文件或目录| 来源: 网络整理| 查看: 265

您可以在/usr/lib/x86_64-linux-gnu目录中创建符号链接。我发现它的原因是:

$ whereis libcudart libcudart: /usr/lib/x86_64-linux-gnu/libcudart.so /usr/share/man/man7/libcudart.7.gz

在这个文件夹中,您可以找到这些cuda库的其他版本。然后创建像这样的符号链接。链接到的特定版本可能略有不同。

$ sudo ln -s libcublas.so.10.2.1.243 libcublas.so.11 $ sudo ln -s libcublasLt.so.10.2.1.243 libcublasLt.so.11 $ sudo ln -s libcusolver.so.10.2.0.243 libcusolver.so.11 $ sudo ln -s libcusparse.so.10.3.0.243 libcusparse.so.11

现在你的GPU应该被检测到了。

import tensorflow as tf >>> tf.test.is_gpu_available() WARNING:tensorflow:From :1: is_gpu_available (from tensorflow.python.framework.test_util) is deprecated and will be removed in a future version. Instructions for updating: Use `tf.config.list_physical_devices('GPU')` instead. 2021-12-07 17:07:26.914296: I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2021-12-07 17:07:26.950731: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:939] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2021-12-07 17:07:27.029687: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:939] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2021-12-07 17:07:27.030421: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:939] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2021-12-07 17:07:27.325218: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:939] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2021-12-07 17:07:27.325642: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:939] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2021-12-07 17:07:27.326022: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:939] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2021-12-07 17:07:27.326408: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1525] Created device /device:GPU:0 with 9280 MB memory: -> device: 0, name: NVIDIA GeForce RTX 3060, pci bus id: 0000:06:00.0, compute capability: 8.6 True

此方法之所以有效,是因为这些cuda库非常相似,甚至NVIDIA也经常使用符号链接来构建它们。如果tensorflow正在寻找libcublas.so.11,您可以创建一个名为该名称的文件,该文件指向已经安装的libcublas的另一个版本。



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3